// TypeScript file

class MenuScene extends eui.Component implements eui.UIComponent {

    public startBtn: eui.Button;

    public constructor() {
        super();
        this.addEventListener(eui.UIEvent.COMPLETE, this.onComplete, this);
        this.skinName = "resource/scene/MenuScene.exml";
    }

    private onComplete(): void {
        this.init();
    }

    private init() {
        this.startBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.tapHandler, this);
    }

    private tapHandler() {
        SceneManager.instance.changeScene(SceneManager.gameScene);
    }

}